< previous page page_18 next page >

Page 18
In order to build a collection of related data, you need three key building blocks. These building blocks are (from smallest to largest)
· Data fields (sometimes called data columns)
· Data records (also known as data rows)
· Data tables
Let's look at each of these elements in more depth.
Data Fields
The first building block in a relational database is the data field. The data field contains the smallest element of data that you can store in a database, and each field contains only one data element. For example, if you want to store the name of a customer, you must create a data field somewhere in the database and also give that field a name, such as CustomerName. If you want to store the current account balance of a customer, you must create another field, possibly calling it AccountBalance. All the fields you create are stored in a single database (see Figure 2.1).
0018-01.jpg
Figure 2.1.
Examples of data fields in a database.
Note.gif
In formal database theory, a data field is often referred to as a data column. Throughout this book, the phrases data field and data column are used interchangeably.

Although it is possible to store more than one data element in a single field (such as first and last name), it is not good database practice to do so. In fact, storing more than one data element in a field can lead to problems when you or other users try to retrieve or update data.

 
< previous page page_18 next page >

If you like this book, buy it!